package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

public interface TrackInfoService extends IService<TrackInfo> {

    IPage<TrackListVo> findUserTrackPage(Integer pageNum, Integer pageSize, TrackInfoQuery trackInfoQuery);

    UploadTrackVo uploadTrack(MultipartFile file);

    void saveTrackInfo(TrackInfoVo trackInfoVo);

    void updateTrackInfo(Integer id, TrackInfoVo trackinfoVo);

    void removeTrackInfo(Integer id);

    IPage<AlbumTrackListVo> findAlbumTrackPage(Long albumId, Long page, Long limit);

    void updateTrackStat(TrackStatMqVo trackStatMqVo);

    TrackStatVo getTrackStatVo(Long trackId);
}
